class CreateTags < ActiveRecord::Migration
  def self.up
    create_table :tags do |t|

      t.string :name
      t.string :stripped_name
      t.timestamps
    end

    create_table :advertisments_tags, :id => false do |t|
      t.column :advertisment_id, :integer
      t.column :tag_id, :integer
    end
  end

  def self.down
    drop_table :tags
  end
end

